<div id="modText">
	<div class="textW">
		<h3><?php echo $this->translate("Tickets"); ?></h3>
	</div>
	<?php /* Wenn mehr als 0 Tickets da sind, gibt die Tickettabelle aus */ ?>			
	<?php if(count($this->ticketarr) > 0) : ?>
		<? //print_r($this->ticketarr); ?>
		<?=$this->partial('tickets/partial/tickettable.phtml', array("tickets" => $this->paginator, 
																		"projects" => $this->projectarr,
																		"num_pages" => $this->num_pages)); ?>
		<?php echo $this->paginationControl($this->paginator, 'All', 'index/pagination.phtml'); ?>	
	<?php else : ?>
		<div class="textW" style="display:none;">
			<p><?php echo $this->translate("Aktuell gibt es keine Tickets."); ?></p>
		</div>	
	<?php endif; ?>
	<?php /* RegistrierungsForm */ ?>			
	<?php if(!is_null($this->ticket)) : ?>
		<?=$this->partial('tickets/partial/new.phtml', array("ticket" => $this->ticket, 
																"projects" => $this->projectarr, 
																"costs" => $this->costarr,
																"worker" => $this->workerarr, 
																"edittype" => $this->edittype)); ?>
	<?php endif; ?>
	<?php if(count($this->commentarr) > 0) : ?>
		<? //print_r($this->ticketarr); ?>
		<div id="comments">
		<?=$this->partial('tickets/partial/comment.phtml', array("comments" => $this->commentarr)); ?>
		</div>
	<?php else : ?>
		<div class="textW" style="display:none;">
			<p><?php echo $this->translate("Verfassen Sie einen Kommentar"); ?></p>
		</div>	
	<?php endif; ?>
	<?php if(isset($this->edittype)) : ?>
	<div id="formbox-comment"></div>
	<div class="submitbox" id="submitbox-comment">
		<div class="submit">
			<p><a id="add-comment"><?php echo $this->translate("Kommentar hinzufügen"); ?></a></p>
		</div>
	</div>
	<?php endif; ?>
</div>